$('#logout').on('click', function () {
  var isConfirm = confirm('您真的要退出吗?');
  if (isConfirm) {
    axios({
        method: 'post',
        url: '/logout',
      })
      .then(function (res) {
        location.href = 'index.html';
      })
      .catch(function (error) {
        alert('退出失败')
      });
  }
})